const { defineConfig } = require("@vue/cli-service");
let path = require('path')
function resolve(dir) {
  return path.join(__dirname, dir)
}

module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false, //关闭语法检查
  chainWebpack: config => {
    config.plugin('html').tap(args => {
      args[0].title = '啊皮量化';
      return args;
    })
    config.resolve.alias.set('@', resolve('src'))
  },
  devServer: {
    open: true,
    proxy: {
      '/api': {
        target: 'https://47.114.171.251:83',
        pathRewrite: {
          "^/api": "",
        },
      }
    },
  },
});
